package com.eastmelon.blog.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eastmelon.basic.model.Pager;
import com.eastmelon.blog.dao.LinkDao;
import com.eastmelon.blog.entity.Link;
import com.eastmelon.blog.service.LinkService;

@Service("linkService")
public class LinkServiceImpl implements LinkService{
	@Resource(name="linkDao")
	private LinkDao linkDao;

	@Override
	public Link get(Serializable id) {
		return linkDao.get(id);
	}

	@Override
	public void save(Link entity) {
		linkDao.save(entity);
	}

	@Override
	public void update(Link entity) {
		linkDao.update(entity);
	}

	@Override
	public void deleteById(Serializable id) {
		linkDao.deleteById(id);
	}

	@Override
	public List<Link> find() {
		return linkDao.find(null);
	}

	@Override
	public Integer getMaxPos() {
		return linkDao.getMaxPos();
	}

	@Override
	public Pager<Link> findPage() {
		return linkDao.findPage();
	}

}
